package com.grandtech.insurance.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 
 * 照片属性表
 */
public class DbZpsx implements Serializable {
    /**
     * 主键id
     */
    private String id;

    /**
     * 用户证件号
     */
    private String idcode;

    /**
     * 种养类型（01种植02养殖）
     */
    private String zytype;

    /**
     * 图片路径
     */
    private String url;
    private String url1;

    /**
     * 区划代码
     */
    private String qhdm;

    /**
     * 区划名称
     */
    private String qhmc;

    /**
     * X坐标
     */
    private BigDecimal xCoordinate;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 年份
     */
    private String nf;

    /**
     * Y坐标
     */
    private BigDecimal yCoordinate;

    /**
     * 项目编码
     */
    private String xmbm;

    /**
     * 空间信息
     */
    private Object shape;

    private String xyCoordinate;

    private String type;

    private String zpcode;

    private BigDecimal yz;

    private BigDecimal jl;

    private int flag = 0;

    public String getUrl1() {
        return url1;
    }

    public void setUrl1(String url1) {
        this.url1 = url1;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public BigDecimal getJl() {
        return jl;
    }

    public void setJl(BigDecimal jl) {
        this.jl = jl;
    }

    public BigDecimal getYz() {
        return yz;
    }

    public void setYz(BigDecimal yz) {
        this.yz = yz;
    }

    public String getZpcode() {
        return zpcode;
    }

    public void setZpcode(String zpcode) {
        this.zpcode = zpcode;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getXyCoordinate() {
        return xyCoordinate;
    }

    public void setXyCoordinate(String xyCoordinate) {
        this.xyCoordinate = xyCoordinate;
    }

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIdcode() {
        return idcode;
    }

    public void setIdcode(String idcode) {
        this.idcode = idcode;
    }

    public String getZytype() {
        return zytype;
    }

    public void setZytype(String zytype) {
        this.zytype = zytype;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getQhdm() {
        return qhdm;
    }

    public void setQhdm(String qhdm) {
        this.qhdm = qhdm;
    }

    public String getQhmc() {
        return qhmc;
    }

    public void setQhmc(String qhmc) {
        this.qhmc = qhmc;
    }

    public BigDecimal getxCoordinate() {
        return xCoordinate;
    }

    public void setxCoordinate(BigDecimal xCoordinate) {
        this.xCoordinate = xCoordinate;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getNf() {
        return nf;
    }

    public void setNf(String nf) {
        this.nf = nf;
    }

    public BigDecimal getyCoordinate() {
        return yCoordinate;
    }

    public void setyCoordinate(BigDecimal yCoordinate) {
        this.yCoordinate = yCoordinate;
    }

    public String getXmbm() {
        return xmbm;
    }

    public void setXmbm(String xmbm) {
        this.xmbm = xmbm;
    }

    public Object getShape() {
        return shape;
    }

    public void setShape(Object shape) {
        this.shape = shape;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DbZpsx other = (DbZpsx) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getIdcode() == null ? other.getIdcode() == null : this.getIdcode().equals(other.getIdcode()))
            && (this.getZytype() == null ? other.getZytype() == null : this.getZytype().equals(other.getZytype()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
            && (this.getQhdm() == null ? other.getQhdm() == null : this.getQhdm().equals(other.getQhdm()))
            && (this.getQhmc() == null ? other.getQhmc() == null : this.getQhmc().equals(other.getQhmc()))
            && (this.getxCoordinate() == null ? other.getxCoordinate() == null : this.getxCoordinate().equals(other.getxCoordinate()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getNf() == null ? other.getNf() == null : this.getNf().equals(other.getNf()))
            && (this.getyCoordinate() == null ? other.getyCoordinate() == null : this.getyCoordinate().equals(other.getyCoordinate()))
            && (this.getXmbm() == null ? other.getXmbm() == null : this.getXmbm().equals(other.getXmbm()))
            && (this.getShape() == null ? other.getShape() == null : this.getShape().equals(other.getShape()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getIdcode() == null) ? 0 : getIdcode().hashCode());
        result = prime * result + ((getZytype() == null) ? 0 : getZytype().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getQhdm() == null) ? 0 : getQhdm().hashCode());
        result = prime * result + ((getQhmc() == null) ? 0 : getQhmc().hashCode());
        result = prime * result + ((getxCoordinate() == null) ? 0 : getxCoordinate().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getNf() == null) ? 0 : getNf().hashCode());
        result = prime * result + ((getyCoordinate() == null) ? 0 : getyCoordinate().hashCode());
        result = prime * result + ((getXmbm() == null) ? 0 : getXmbm().hashCode());
        result = prime * result + ((getShape() == null) ? 0 : getShape().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", idcode=").append(idcode);
        sb.append(", zytype=").append(zytype);
        sb.append(", url=").append(url);
        sb.append(", qhdm=").append(qhdm);
        sb.append(", qhmc=").append(qhmc);
        sb.append(", xCoordinate=").append(xCoordinate);
        sb.append(", createTime=").append(createTime);
        sb.append(", nf=").append(nf);
        sb.append(", yCoordinate=").append(yCoordinate);
        sb.append(", xmbm=").append(xmbm);
        sb.append(", shape=").append(shape);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}